#include<bits/stdc++.h>
using namespace std;
double qpow(double x,int y)
{
	double res = 1;
	while(y)
	{
		if(y&1) res = res*x;
		y>>=1;
		x = x*x;
	}
	return res;
}
double Sqrt(double x,int y)
{
	if(!y) return 0;
	double l = 0,r = x,res;
	while(r-l>1e-4)
	{
		double mid = (l+r)/2;
		if(qpow(mid,y)<=x) res = mid,l = mid;
		else r = mid;
	}
	return res;
}
signed main()
{
//	freopen(".in","r",stdin);
//	freopen(".out","w",stdout);
//	ios::sync_with_stdio(0),cin.tie(0),cout.tie(0);
	double n;
	int m;
	while(1)
		cin>>n>>m,cout<<Sqrt(n,m)<<'\n';
	return 0;
}

